
//$ input.1 in.dat:2
//$ input.2 in.dat:3
//$ output out.dat
//$ dim.global 1024 0 0
//$ dim.local  0 0 0

// the name of main kernel must be "clmain"
// function parameters: (float* input, ..., float* result, uint count)

__kernel void clmain(
	__global float* inputa, 
	__global float* inputb,
	__global float* result,
	const unsigned int count) {

	int i=get_global_id(0);
	if(i<count) result[i]=inputa[i]*inputb[i];

}
